package demoMod.invincibleOne.patches;

import com.evacipated.cardcrawl.modthespire.lib.SpirePatch;
import com.evacipated.cardcrawl.modthespire.lib.SpireReturn;
import com.megacrit.cardcrawl.cards.AbstractCard;
import demoMod.invincibleOne.enums.AbstractCardEnum;

public class AbstractCardPatch {
    @SpirePatch(
            clz = AbstractCard.class,
            method = "getPrice"
    )
    public static class PatchGetPrice {
        public static SpireReturn<Integer> Prefix(AbstractCard.CardRarity rarity) {
            if (rarity == AbstractCardEnum.LEGENDARY) {
                return SpireReturn.Return(200);
            }
            return SpireReturn.Continue();
        }
    }
}
